package com.shashank.platform.shotangapp;

import com.shashank.platform.shotangapp.utils.ResUtils;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_main);
        process();
    }

    private void process() {
        Color color = ResUtils.getColorFromRes(this, ResourceTable.Color_purple_700);
        getWindow().setStatusBarColor(color.getValue());
    }

}